package com.zhadafei.mvnbook.account.captcha;
import java.util.List;
public interface AccountCaptchaService {

	//生成随机验证码的主键
	String generateCaptchaKey()throws AccountCaptchaException;

	//生成验证码图片
	byte[] generateCaptchaImage(String captchaKey)throws AccountCaptchaException;

	//验证用户反馈的主键和值
	boolean validateCaptcha(String captchaKey,String captchaValue)throws AccountCaptchaException;

	//预定义验证码图片内容
	List<String> getPreDefinedTexts();

	//预定义验证码图片内容
	void setPreDefinedTexts(List<String> preDefinedTexts);
}